<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS 输出</title>

</head>
<body>
    <h1>第一张网页</h1>
    <script>
        document.write("<p>这是一个段落</p>")
    </script>

    <button onclick="myFunction()">点击这里</button>
    <script>
        function myFunction() {
            document.write("Ops ,there is something wrong")
        }
    </script>

</body>
</html>